{extend name="public:base" /}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-content">
                    <div class="row search-form">
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <input placeholder="请输入企业名称" name="company_name" value="{:input('company_name')}" type="text" class="form-control form-control-lg">
                            </div>
                        </div>
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <select name="is_end" class="form-control form-control-lg">
                                    <option value="0">请选择状态</option>
                                    <option value="1" {:input('is_end') == 1 ? 'selected' : ''}>服务中</option>
                                    <option value="2" {:input('is_end') == 2 ? 'selected' : ''}>已到期</option>
                                    <option value="3" {:input('is_end') == 3 ? 'selected' : ''}>未购买服务</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-sm-2 m-b-sm">
                            <div class="input-group">
                                <button type="button" class="btn btn-primary btn-lg screen-btn">搜索</button>
                            </div>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>企业名称</th>
                                <th>法人姓名</th>
                                <th>法人证件信息</th>
                                <th>法人手机号</th>
                                <th>状态</th>
                                <th>服务结束时间</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.id}</td>
                                <td>{$vo.company_name}</td>
                                <td>{$vo.user_name}</td>
                                <td>{$vo.user_id_type} / {$vo.user_id_num}</td>
                                <td>{$vo.user_mobile}</td>
                                <td>{$vo.status_text}</td>
                                <td>{:timeFormat($vo.service_end_time)}</td>
                                <td class="project-actions">
                                    <a href="{:url('staffList', ['id' => $vo.id])}" class="btn btn-white btn-sm">
                                        <i class="iconfont icon-liebiao"></i> 工资人员信息记录
                                    </a>
                                    <br>
                                    <a href="{:url('salaryList', ['id' => $vo.id])}" class="btn btn-white btn-sm" style="margin-top: 10px">
                                        <i class="iconfont icon-liebiao"></i> 工资薪金所得记录
                                    </a>
                                    <br>
                                    <a href="{:url('invoiceList', ['id' => $vo.id])}" class="btn btn-white btn-sm" style="margin-top: 10px">
                                        <i class="iconfont icon-liebiao"></i> 开票申请记录
                                    </a>
                                    <br>
                                    <a href="{:url('taxDeductionList', ['id' => $vo.id])}" class="btn btn-white btn-sm" style="margin-top: 10px">
                                        <i class="iconfont icon-liebiao"></i> 企业所得税抵扣填报
                                    </a>
                                </td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list)}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>
{/block}